
using namespace std;
#include <windows.h>
#include <iostream>
#include <malloc.h>

using MyStruct = struct TestStruct {
	int a;
	int b;
	byte* testByte;
	int testByteLen;
	char* hubId;
	int hubIdLen;
};

using MyStruct1 = struct TestStruct1 {
	TestStruct* a;
	int len;
};

extern "C" __declspec(dllexport) int cacPtr(TestStruct * a);
extern "C" __declspec(dllexport) int cacRef(TestStruct & a);

extern "C" __declspec(dllexport) bool cacPtrBool(TestStruct * a);
extern "C" __declspec(dllexport) bool cacRefBool(TestStruct & a);

extern "C" __declspec(dllexport) int CalculateCheckSumShort(byte data[], int len);

extern "C" __declspec(dllexport) bool GetStruct(byte data[], int len, MyStruct1 &resul);

